<?php

class Retailer_Backend_Block_Adminhtml_Account_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
{
    public function __construct(){
        parent::__construct();
        $this->setTemplate('backend/edit/account.phtml');
    }
//  protected function _prepareForm()
//  {
//      $form = new Varien_Data_Form();
//      $this->setForm($form);
//      $form->setDataObject(Mage::registry('backend_data'));
//
//      $fieldset = $form->addFieldset('backend_form', array('legend'=>Mage::helper('backend')->__('Account information')));
//
//      $fieldset->addField('firstname', 'label', array(
//          'label'     => Mage::helper('backend')->__('First Name'), //Mage::getModel('admin/user')->load($session->getId())->getId()
//          'class'     => 'required-entry',
//          'required'  => false,
//          'name'      => 'firstname',
//      ));
//
//      $fieldset->addField('lastname', 'label', array(
//          'label'     => Mage::helper('backend')->__('Last Name'),
//          'required'  => false,
//          'name'      => 'lastname',
//      ));
//      if(Mage::getSingleton('admin/session')->getUser()->getRole()->getRoleName()=="Administrators"){
//      $fieldset->addField('store_id', 'text', array(
//          'label'     => Mage::helper('backend')->__('Store ID'),
//          //'required'  => true,
//          'name'      => 'store_id',
//      ));
//      $fieldset->addField('commission', 'text', array(
//          'label'     => Mage::helper('backend')->__('Commission'),
//          //'required'  => true,
//          'name'      => 'commission',
//      ));
//      $fieldset2 = $form->addFieldset('web_form', array('legend'=>Mage::helper('backend')->__('Website Codes')));
//      $websites=Mage::getModel('core/website')->getCollection();
//      foreach($websites as $web){
//          $fieldset2->addField("{$web->getId()}", 'label', array(
//              'label'     => Mage::helper('backend')->__("{$web->getId()} - {$web->getName()}"),
//              //'required'  => true,
//              'name'      => "{$web->getId()}"
//          ));
//      }
//      }
////      $fieldset->addField('username', 'text', array(
////          'label'     => Mage::helper('backend')->__($model),
////          'required'  => true,
////          'name'      => 'username',
////      ));
////
////     $fieldset->addField('password', 'text', array(
////          'label'     => Mage::helper('backend')->__('Password(security reasons)'),
////          'required'  => true,
////          'name'      => 'password',
////      ));
////
////      $fieldset->addField('status', 'select', array(
////          'label'     => Mage::helper('backend')->__('Status'),
////          'name'      => 'status',
////          'values'    => array(
////              array(
////                  'value'     => 1,
////                  'label'     => Mage::helper('backend')->__('Enabled'),
////              ),
////
////              array(
////                  'value'     => 2,
////                  'label'     => Mage::helper('backend')->__('Disabled'),
////              ),
////          ),
////      ));
////
////      $fieldset->addField('content', 'editor', array(
////          'name'      => 'content',
////          'label'     => Mage::helper('backend')->__('Content'),
////          'title'     => Mage::helper('backend')->__('Content'),
////          'style'     => 'width:700px; height:500px;',
////          'wysiwyg'   => false,
////          'required'  => false,
////      ));
//
//
//      if ( Mage::getSingleton('adminhtml/session')->getBackendData() )
//      {
//          $form->setValues(Mage::getSingleton('adminhtml/session')->getBackendData());
//          Mage::getSingleton('adminhtml/session')->setBackendData(null);
//      } elseif ( Mage::registry('backend_data') ) {
//          $form->setValues(Mage::registry('backend_data')->getData());
//      }
//      return parent::_prepareForm();
//  }
}